/**
 * 按钮权限是否存在
 * @param {*} str 
 * @returns boolean
 */
import { isContained } from '@/utils/tools'
import store from "@/store/store"
import _ from 'lodash';
export function btnHaspermi(str) {
  let allPermi = store.getState().idents
  if (str && str.length >= 0 && isContained(allPermi, str)) {
    return true;
  }else{
    return false;
  }
}